# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-cursor
pkgver=1.3.5
pkgrel=5
pkgdesc="Python package to hide or show the terminal cursor"
arch=('any')
url="https://pypi.org/project/cursor/#files"
license=('custom')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('be3db590abd3d2c9695eb8499695d727b4bba4155bdc0c9c885365080866423c2016521931adc0ce6b3d3871e034af3e1e3860ff3a0f155319e183b50471c04b')

build() {
  cd "cursor-$pkgver"

  python setup.py build
}

package() {
  cd "cursor-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

